package org.bluedream.core.module.entity.bill;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.bluedream.comm.base.bill.BillHeadEntity;
import org.bluedream.core.module.entity.depItem.DepItem;
import org.bluedream.core.module.entity.goods.Supplier;
import org.bluedream.core.module.entity.warehouse.WareHouse;

import java.util.List;

/**
 * @ClassName OrdHead
 * @Description TODO
 * @Author foxsand
 * @Data 2021-09-15 14:02
 * @Version
 */
@Data
@ToString(callSuper = true)
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName(value = "ord_head")
public class OrdHead extends BillHeadEntity<OrdHead> {
    private static final long serialVersionUID = -779034231678855483L;
    private String depCode;
    @TableField(exist = false)
    private String depName;
    private String warCode;
    @TableField(exist = false)
    private String warName;
    private String supplierCode;
    @TableField(exist = false)
    private String supplierName;


    @TableField(exist = false)
    private DepItem depItem;

    @TableField(exist = false)
    private WareHouse wareHouse;

    @TableField(exist = false)
    private Supplier supplier;

    @TableField(exist = false)
    private List<OrdBody> ordBodyList;

    public OrdHead(String id) {
        super(id);
    }

    public OrdHead(long limit , long pageSize) {
        super(limit , pageSize);
    }
}
